package com.odianyun.hello.service.impl;

import com.odianyun.db.query.PageVO;
import com.odianyun.hello.mapper.SoPackageItemMapper;
import com.odianyun.hello.service.SoPackageItemService;
import com.odianyun.hello.model.PO.SoPackageItemPO;
import com.odianyun.hello.model.VO.SoPackageItemVO;
import com.odianyun.project.base.IEntity;
import com.odianyun.project.query.PageQueryArgs;
import com.odianyun.project.query.QueryArgs;
import com.odianyun.project.support.base.service.OdyEntityService;
import java.util.*;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class SoPackageItemServiceImpl extends OdyEntityService<SoPackageItemPO, SoPackageItemVO, PageQueryArgs, QueryArgs, SoPackageItemMapper> implements SoPackageItemService {
    @Resource
    private SoPackageItemMapper mapper;

    @Override
    protected SoPackageItemMapper getMapper() {
        return mapper;
    }

    @Override
	protected void afterListPage(PageVO<? extends IEntity> pageVO) {
	    for (IEntity entity : pageVO.getList()) {
	        SoPackageItemVO vo = (SoPackageItemVO) entity;
            vo.setPackageCode("packageCode");
            vo.setOrderCode("orderCode");
	    }
	}



}
